<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <button id="btn" onclick="showDOM()"> 获取数据</button>
    <script type="text/javascript">

        async function showDOM() {
            const url = 'http://192.168.1.122:8081/api/hot-event/hot-board/?origin=toutiao_pc'
            let result = await fetch(url)
            let data = await result.json();
            console.log(data)
        }

    </script>
</body>

</html>